package org.springblade.modules.platform.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class  PageInfo<T> {
	@ApiModelProperty(value = "总条数")
	private Integer total;
	@ApiModelProperty(value = "结束行")
	private Integer endRow=0;

	@ApiModelProperty(value = "是否有下一页")
	private Boolean hasNextPage;

	@ApiModelProperty(value = "是否有上一页")
	private Boolean hasPreviousPage;

	@ApiModelProperty(value = "是否是第一页")
	private Boolean isFirstPage;

	@ApiModelProperty(value = "是否是最后一页")
	private Boolean isLastPage;

	@ApiModelProperty(value = "导航最后一页")
	private Integer navigateLastPage;

	@ApiModelProperty(value = "导航页码")
	private int[] navigatepageNums;

	@ApiModelProperty(value = "下一页")
	private Integer nextPage;

	@ApiModelProperty(value = "页码")
	private Integer pageNum;

	@ApiModelProperty(value = "页面大小")
	private Integer pageSize;
	@ApiModelProperty(value = "页")
	private Integer pages;

	@ApiModelProperty(value = "前页")
	private Integer prePage;
	@ApiModelProperty(value = "大小")
	private Integer size;
	@ApiModelProperty(value = "开始行")
	private Integer startRow;

	@ApiModelProperty(value = "shuju")
	private List<T>  pageList;


	public PageInfo (List<T>  pageList,Integer total){
		this.pageList = pageList;
		this.total = total;
	}



}
